/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.gorkemozbek.rubic.util.struct

object StructConversions {

  implicit def booleanToStruct(x: Boolean) = new BooleanStruct(x)

  implicit def byteToStruct(x: Byte) = new NumericStruct(x.toDouble)

  implicit def shortToStruct(x: Short) = new NumericStruct(x.toDouble)

  implicit def intToStruct(x: Int) = new NumericStruct(x.toDouble)

  implicit def longToStruct(x: Long) = new NumericStruct(x.toDouble)

  implicit def floatToStruct(x: Float) = new NumericStruct(x.toDouble)

  implicit def doubleToStruct(x: Double) = new NumericStruct(x.toDouble)

  implicit def charToStruct(x: Char) = new TextualStruct(x.toString)
  
  implicit def stringToStruct(s: String) = new TextualStruct(s)


}
